package com.cskaoyan.service.wx_aftersale;

import com.cskaoyan.bean.BaseParam;
import com.cskaoyan.bean.PageDataVo;
import com.cskaoyan.bean.mall.aftersale.AfterSale;
import com.cskaoyan.bean.mall.aftersale.AfterSaleExample;
import com.cskaoyan.bean.wx_aftersale.WxAfterSaleListVO;
import com.cskaoyan.mapper.mall.AfterSaleMapper;
import com.cskaoyan.utils.MarketPageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: enhui
 **/
@Service
public class WxAfterSaleServiceImpl implements WxAfterSaleService {
    @Autowired
    AfterSaleMapper afterSaleMapper;

    @Override
    public PageDataVo afterSaleList(Short status, Integer userId, BaseParam baseParam) {
        MarketPageUtil.startPage(baseParam);
        WxAfterSaleListVO wxAfterSaleListVO = new WxAfterSaleListVO();
        AfterSaleExample afterSaleExample = new AfterSaleExample();
        AfterSaleExample.Criteria criteria = afterSaleExample.createCriteria();
        criteria.andUserIdEqualTo(userId).andStatusEqualTo(status);
        List<AfterSale> afterSales = afterSaleMapper.selectByExample(afterSaleExample);
//        wxAfterSaleListVO.setAftersale(afterSales);
        return null;
    }



}
